<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>	
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑展会信息</title>
<link rel="stylesheet" href="<%=path %>/css/bootstrap.css" />
<link rel="stylesheet" href="<%=path %>/css/css.css" />
<script type="text/javascript" src="<%=path %>/js/jquery1.9.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/sdmenu.js"></script>
<script type="text/javascript" src="<%=path %>/js/laydate/laydate.js"></script>
<script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>	
<script type="text/javascript">
	$(document).ready(function(){
		$("#submit").click(function(){
			var ehi_name=$("#ehi_name").val();
			var ehi_file_no=$("#ehi_file_no").val();
			var ehi_start_time=$("#ehi_start_time").val();
			var ehi_end_time=$("#ehi_end_time").val();
			var ehi_fix_time=$("#ehi_fix_time").val();
			var ehi_address=$("#ehi_address").val();
			var ehi_host_unit=$("#ehi_host_unit").val();
			var ehi_und_unit=$("#ehi_und_unit").val();
			var ehi_spo_no=$("#ehi_spo_no").val();
			var ehi_in_fee=$("#ehi_in_fee").val();
			var ehi_out_fee=$("#ehi_out_fee").val();
			var ehi_qua=$("#ehi_qua").val();
			var type_name=$("#type_name").val();
			if($.trim(ehi_name)==""){
				alert("请输入展会名称");
				return false;
			}
			
			if($.trim(ehi_file_no)==""){
				alert("请输入批文号");
				return false;
			}
			
			if($.trim(ehi_start_time)==""){
				alert("请输入开始时间");
				return false;
			}
			
			if($.trim(ehi_end_time)==""){
				alert("请输入结束时间");
				return false;
			}
			
			if($.trim(ehi_fix_time)==""){
				alert("请输入布展时间");
				return false;
			}
			
			if($.trim(ehi_address)==""){
				alert("请输入展会地点");
				return false;
			}
			
			if($.trim(ehi_host_unit)==""){
				alert("请输入主办单位");
				return false;
			}
			
			if($.trim(ehi_und_unit)==""){
				alert("请输入承办单位");
				return false;
			}
			
			if($.trim(ehi_spo_no)==""){
				alert("请输入赞助单位");
				return false;
			}
			
			if($.trim(ehi_in_fee)==""){
				alert("请输入室内租金");
				return false;
			}
			if($.trim(ehi_out_fee)==""){
				alert("请输入室外租金");
				return false;
			}
			if($.trim(ehi_qua)==""){
				alert("请输入参展商资格");
				return false;
			}
			alert("编辑成功");
			$("#form").submit();
		});
	});
</script>
</head>
<body>
	<div class="right_cont">
		<ul class="breadcrumb">当前位置：我得展会<span class="divider">/</span></span>编辑展会</ul>
	</div>
	<div class="title_right"><strong>编辑展会</strong></div>
	<form action="<%=path %>/host/exhiUpdateOk.do" id="form" method="post">
	<table class="table table-bordered" style="width:500px" align="center">
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">展会名称：</td>
			<td width="70%" colspan="3">
				<input type="hidden" name="ehi_id" maxlength="40" value="${requestScope.exhinfo.ehi_id }" style="width:300px" id="ehi_id" class="span1-1" />
				<input type="text" name="ehi_name" maxlength="40" value="${requestScope.exhinfo.ehi_name }" style="width:300px" id="ehi_name" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">批文号：</td>
			<td width="70%" colspan="3">
				<input type="text" name="ehi_file_no" value="${requestScope.exhinfo.ehi_file_no }" maxlength="20" id="ehi_file_no" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td align="right" bgcolor="#f1f1f1">开始时间：</td>
			<td>
				<input type="text" name="ehi_start_time" value="${requestScope.exhinfo.ehi_start_time }"  class="laydate-icon span1-1" readonly="readonly" onfocus="WdatePicker()" id="ehi_start_time"  />
			</td>
			<td align="right" bgcolor="#f1f1f1">结束时间：</td>
			<td>
				<input type="text" name="ehi_end_time" value="${requestScope.exhinfo.ehi_end_time }" class="laydate-icon span1-1" readonly="readonly" onfocus="WdatePicker()" id="ehi_end_time"/>
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">布展时间：</td>
			<td width="70%" colspan="3">
				<input type="text" name="ehi_fix_time" value="${requestScope.exhinfo.ehi_fix_time }"  class="laydate-icon span1-1" readonly="readonly" onfocus="WdatePicker()" id="ehi_fix_time"/>
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">展会地点：</td>
			<td width="70%" colspan="3">
				<input type="text" name="ehi_address" value="${requestScope.exhinfo.ehi_address }" style="width:300px" maxlength="20" id="ehi_address" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">主办单位：</td>
			<td width="70%" colspan="3">
				<input type="text" name="ehi_host_unit" value="${requestScope.exhinfo.ehi_host_unit }" maxlength="20" style="width:300px" id="ehi_host_unit" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">承办单位：</td>
			<td width="70%" colspan="3">
				<input type="text" name="ehi_und_unit" value="${requestScope.exhinfo.ehi_und_unit }" maxlength="20" style="width:300px" id="ehi_und_unit" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">赞助单位：</td>
			<td width="70%" colspan="3">
				<input type="text" name="ehi_spo_no" value="${requestScope.exhinfo.ehi_spo_no }" maxlength="20" style="width:300px" id="ehi_spo_no" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td align="right" bgcolor="#f1f1f1">室内租金：</td>
			<td>
				<input type="text" name="ehi_in_fee" style="width:50px" value="${requestScope.exhinfo.ehi_in_fee }" maxlength="5" id="ehi_in_fee" class="span1-1" />元
			</td>
			<td width="50%" align="right" bgcolor="#f1f1f1">室外租金：</td>
			<td width="50%">
				<input type="text" name="ehi_out_fee" style="width:50px" value="${requestScope.exhinfo.ehi_out_fee }" maxlength="5" id="ehi_out_fee" class="span1-1" />元
			</td>
		</tr>
		<tr>
			<td width="30%" align="right" bgcolor="#f1f1f1">参展商资格：</td>
			<td width="70%" colspan="3">
				<textarea rows="3" name="ehi_qua"  id="ehi_qua" cols="60">${requestScope.exhinfo.ehi_qua}</textarea>
			</td>
		</tr>
	</table>
	<table class="margin-bottom-20 table  no-border">
		<tr>
			<td class="text-center">
				<input type="submit" id="submit" value="确定" class="btn btn-info " style="width: 80px;" />
				<input type="button" onclick="history.back()" value="返回" class="btn btn-info " style="width: 80px;" />
			</td>
		</tr>
	</table>
	</form>
</body>
</html>